<form #f="ngForm" (submit)="onSubmit(f,$event)">
  <h2 mat-dialog-title>项目邀请</h2>
  <div mat-dialog-content>
    <app-chips-list [label]="'邀请人员'" name="members" [(ngModel)]="members"></app-chips-list>
  </div>
  <div mat-dialog-actions>
    <button mat-raised-button color="primary"type="submit" [disabled]="!f.valid">保存</button>
    <button type="button" mat-button mat-dialog-close>关闭</button>
  </div>
</form>
